//运单首页

@import '@/style/variables.scss';
@import '@/style/mixins.scss';

.waybill-box {
  font-size: 14px;
  background-color: $background-color-base;
  // min-height: 100%;
  height: 100%;
  overflow: scroll;
  .bill__order__time {
    line-height: 20px;
  }
  .sec__status {
    padding: 0px 6px;
    height: 20px;
    background: rgba(159, 162, 175, 0.2);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    .src__Status__text {
      color: #767F8E;
      font-size: 11px;
      margin-left:4px;
      line-height: 11px;
    }
    .sec__status__color {
      display: block;
      width: 5px;
      height: 5px;
      border-radius: 50%;
    }
  }
  .goods__num {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    .goods__title {
      font-size: 14px;
      font-weight: 400;
      color: #575C72;
    }
    .goods_speed {
      height: 8px;
      width: 180px;
      border-radius: 4px;
      background: rgba(255, 182, 64, .2);
      position: relative;
      overflow: hidden;
      .current__Speed {
        width: 0;
        height: 100%;
        position: absolute;
        left: 0;
        top: 0;
        background: #FFB640;
      }
    }
    .goods__memo {
      font-size: 12px;
      font-weight: 400;
      color: #575C72;
    }
  }
}

form {
  background-color: #fff;
}

::v-deep(.van-search__content) {
  border-radius: 10px;
  box-shadow: 0px 2px 14px 0px rgba(185, 185, 185, 0.1);
}

::v-deep(.van-search .van-cell) {
  padding: 11px 0;
}

.search-btn {
  width: 50px;
  height: 46px;
  background-color: $color-primary;
  box-shadow: 0px 4px 16px 0px rgba(64, 158, 255, 0.3);
  border-radius: 12px;
  font-weight: 500;
  text-align: center;
  line-height: 46px;
  color: #fff;
}

.magnifier {
  vertical-align: middle;
  width: 20px;
  height: 20px;
  margin-right: 3px;
}

.tab-box {
  height: auto;

  ::v-deep(.van-tabs__wrap) {
    height: 60px;
  }

  //tab列表
  .order {
    margin: 0 12px 12px;
    background-color: #fff;
    padding: 15px;
    box-sizing: border-box;
    border-radius: 10px;
    color: $color-text-regular;

    .price {
      color: $color-text-primary;
      text-align: right;
    }

    hr {
      margin-bottom: 10px;
    }

    // 地址
    .order-address {
      color: $color-text-primary;
      margin: 12px 0;

      img {
        height: 100%;
        width: 8px;
      }

      .list {
        font-size: 15px;
        font-weight: 600;

        .area {
          @include ellipsis;
        }

        .describe {
          font-size: 14px;
          font-weight: normal;
          color: $color-text-regular;
          margin: 15px 0;
          display: flex;
          background: #f7f9fc;
          border-radius: 6px;
          padding: 8px 10px;
          box-sizing: border-box;

          &>div:first-child {
            width: 70%;
            word-wrap: break-word;
            word-break: normal;
          }

          &>div:last-child {
            width: 30%;
            text-align: right;
          }
        }
      }
    }

    //更多
    .order-handle {
      margin-top: 12px;

      .van-button {
        margin-left: 15px;
        width: 78px;
        height: 32px;
      }

      .cancel {
        border: 1px solid $border-color-base;
        color: $color-text-regular;
      }

      .see {
        border: 1px solid $color-primary-light-3;
        color: $color-primary;
      }

      .sure {
        white-space: nowrap;
        background: linear-gradient(125deg, #74cdff 0%, #409eff 100%);
      }
      .sure__2 {
        background: linear-gradient(125deg, #74CDFF 0%, #409EFF 100%);
        color: white
      }
    }

    // 运单号
    .waybill-number {
      color: $color-text-primary;
      height: 20px;
      line-height: 20px;
    }
  }

  //tab栏
  ::v-deep(.van-tabs__wrap) {
    .van-tab__text {
      color: $color-text-regular;
    }

    // tab激活项颜色
    .van-tab--active {
      .van-tab__text {
        width: 72px;
        height: 30px;
        line-height: 30px;
        background: $color-primary;
        box-shadow: 0px 4px 16px 0px rgba(64, 158, 255, 0.14);
        border-radius: 15px;
        text-align: center;
        color: #fff;
      }
    }

    .van-tabs__line {
      height: 0;
    }
  }

  // tab栏吸顶位置
  ::v-deep(.van-sticky--fixed) {
    top: 88px !important;
  }

}

// loading状态
.van-loading {
  position: fixed !important;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

// 数据空
.custom-image {
  text-align: center;
  color: $color-text-secondary;
  height: calc(100vh - 264px);
  position: relative;

  .box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  img {
    width: 232px;
    height: 175px;

  }
}

.passwordPoppup {
  width: 100%;
  padding-top: 30px;
  height: 355px;

  .memo {
    text-align: center;
    font-size: 14px;
    margin-bottom: 10px;
    color: #333;
  }
}